/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.message;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.message.Message;

/**
 * @author CSJ (email:raulcsj@163.com)
 * @since 2013-02-24
 */
public interface MessageService {

    /****************************************
     * Insert a instace of Message
     ****************************************/
    void insert(Message message) throws Exception;

    /****************************************
     * Insert instaces of Message
     ****************************************/
    void batchInsert(Message message) throws Exception;

    /****************************************
     * Delete a instace of Message
     ****************************************/
    void delete(Message message) throws Exception;

    /****************************************
     * Delete instaces of Message
     ****************************************/
    void batchDelete(Message message) throws Exception;

    /****************************************
     * Update a instace of Message
     ****************************************/
    void update(Message message) throws Exception;
    
    /****************************************
     * Update a instace of Message
     ****************************************/
    void batchUpdate(Message message) throws Exception;
    
    /****************************************
     * Query instaces of Message
     ****************************************/
    List<BaseModel> queryAsList(Message message) throws Exception;

    /****************************************
     * Query a instaces of Message
     ****************************************/
    BaseModel queryAsObject(Message message) throws Exception;

}
